'use strict'
// module.exports = {
//   NODE_ENV: '"production"'
// }

var buildtype =process.argv.slice(2)[0]

console.log(buildtype)

var obj ={
   NODE_ENV:'  " production"  '
}

switch(buildtype){


  case 'dev' : //广州测试环境
  process.env.srconfig="http://devtest.zegopay.com:18081",
  obj.srconfig='  "http://devtest.zegopay.com:18081" '
  break;

  case 'pre' : //缅甸测试环境
  process.env.srconfig="https://pretest.zegopay.com:18080",
  obj.srconfig='  "https://pretest.zegopay.com:18080" '
  break;

  case 'gre' : //灰度测试环境
  process.env.srconfig="https://abpay.zegopay.com:18081",
  obj.srconfig='  "https://abpay.zegopay.com:18081" '
  break;

  /**
   * https://pay.zegopay.com:18080/api  
   */
  case 'line' : //正式 环境
  process.env.srconfig="https://pay.zegopay.com:18080",
  obj.srconfig='  "https://pay.zegopay.com:18080" '
  break;

  default: //默认开发环境
  process.env.srconfig="http://devtest.zegopay.com:18081",
  obj.srconfig='  "http://devtest.zegopay.com:18081" '

  // process.env.srconfig="http://192.168.50.113:8080",  //老王本地
  // obj.srconfig='  "http://192.168.50.113:8080" '
  break;

}

module.exports=obj
